const BASE_URL= 'http://yoururl'
module.exports = {
  publicPath: "/static/",
  assetsDir: "sitefront",
  productionSourceMap: false,
  devServer: {
    https: false,
    proxy: {
      "/api/v1": {
        target: BASE_URL + 'api/v1',
        secure: false,
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          "^/api/v1": "/"
        }
      },
      '/media': {
        target: BASE_URL + 'media',
        changeOrigin: true,
        pathRewrite: {
          '^/media': '/'
        },
        secure: false
      }
    }
  },
}
